package com.jkl.service.button.inter;

import com.jkl.entity.button.BsRoleButton;
import com.jkl.entity.button.Button;
import com.jkl.entity.button.ButtonPo;
import com.jkl.entity.button.ButtonVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liuzhennan
 * @create 2021-03-22 16:27
 */
public interface ButtonServiceInter {
    int addButton(Button button);

    Button selectButtonByMenuIdAndButtonCode(Button button);

    List<Button> selectButtonListByMenuId(Integer menuId);

    BsRoleButton selectButtonAndRole(ButtonVo buttoVo);

    void addButtonAndRole(ButtonPo buttonPo);

    void deleteButtonAndRole(ButtonVo buttonVo);

    List<ButtonVo> selectAllButtonWithTree();

    void deleteAllButtonByRole(Integer roleId);

    List<Integer> getButtonByRoleId(Integer rowId);
}
